package com.atguigu.eduservice.client;

import com.atguigu.educenter.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
//    @GetMapping("/ucenterservice/member/getUcenterPay/{memberId}")
//    public UcenterMemberPay getUcenterPay(@PathVariable("memberId") String memberId);

    @PostMapping("/educenter/member/getInfoUc/{id}")
    public UcenterMember getInfo(@PathVariable String id);


}
